{include file="header.tpl.php"}


<div class="titleFull">

	<div class="wrapper">

		<h1 style="line-height: 100px; margin: 0px;">My Files</h1>

	</div>

</div>


<div class="titleBlueBar"></div>




<div class="content2">

	<div class="wrapper">

		<div class="h30"></div>

		<div class="boxLeft2">





			 <form action="files.php" method="post" id="form1" >

			  <table cellspacing="0" cellpadding="0" class="table">
			  <tr>
				  <th>Filename</th><th style="width:100px">Size</th><th style="width:50px">Clicks</th><th style="width:50px">Leads</th><th style="text-align:right;  padding-right:0; width:150px"><input style="margin-top:2px;" type="checkbox" id="checkAll" onclick="CheckAll('form1')" />&nbsp;</th>
			  </tr>
			  {if $files ne ""}
			  {foreach item=file from=$files}
				  
			     <tr style="background: {cycle name=rows values='#ffffff, #f0f0f0'}; height:25px; font-size: 14px;" onmouseover="mouseOver(this, '#fafbfc')" onmouseout="mouseOut(this, '{cycle name=hovers values='#ffffff,#fafbfc'}')"><!--<td>{$file.id}</td>-->
				 
				 <td onmouseover="swap('entry{$file.id}', 'showInput')" onmouseout="swap('entry{$file.id}', 'hide')" width="260"  >
				 <div id="entry{$file.id}" style="display:block; width:100%">{$file.filename}</div>
				    <div id="inputdiventry{$file.id}" style="display: none;">
					<img src="templates/images/copy.png" style="margin-top:3px;" alt="Copy Link" />&nbsp;&nbsp;<input id="inputbox{$file.id}" onclick="selectText(this, 'entry{$file.id}');" type="text" class="copyInput"  readonly="readonly" value="{$SITE_URL|@urldecode}file/{$file.fcode}" style="width:210px;"/></div>
				 </div>
				 </td>
				 
				 <td>{$file.filesize}</td>
				 
				 <td>{$file.hits}</td>
				 
				 <td>{$file.downloads}</td>
				 
				 <td style="text-align:right; padding-right:0px;"><a style="font-size: 14px;" href="files.php?file={$file.id}">Details</a> | <a style="font-size: 14px;" href="files.php?file={$file.id}&section=comment" class="file_d">Testimonials</a> <input type="checkbox" name="ids[]" value="{$file.id}" style="vertical-align:middle" onclick="uncheckCheckAllbox(this)" />&nbsp;</td></tr>
				  
			  {/foreach}
			  {/if}

			</table>

			<div class="h20"></div>

			<div class="boxLeft2Left"><div>{if $records ne "" }&nbsp;<b>{$records}</b> File(s), page <b>{$page}</b> of <b>{$pages}</b> {else} No file uploaded. {/if}{$firstpage} {$previouspage} {$nextpage} {$lastpage}&nbsp;</div></div>

			<div class="boxLeft2Right"><input type="submit" class="buttonsmall" value="Delete" name="delete" onclick="if(!confirm('Are you sure you want to delete selected files?')) return false;" /></div>
			</div>
			</form>


			 {if $pages gt 1}

			<div class="h10"></div>

			<div style="float:left">Page {$page} of {$pages}</div> <div style="float:right"> {$previous} {$next}</div>

			{/if}
			  


			{literal}
			<script type="text/javascript">
			$(document).ready(function(){

			$('.listing_row').hover(function(){ $(this).css('background-color', '#f6f6f6'); }, function(){ $(this).css('background-color', '#ffffff'); });

			  $('#cboxClose').remove();
				 
			   $('.file_d').colorbox({iframe:true, innerWidth:600, innerHeight:550, scrolling: false});	 



			});
			</script>


			{/literal}






		</div>




<!--Right Panel-->
{include file="sidebar.tpl.php"}
<!--End Right Panel-->


{include file="footer.tpl.php"}